package com.wondream.myframework.design_pattern.decorator;

public class ConcreteCarDecorator extends CarDecorator {

    public ConcreteCarDecorator(ICar car) {
        super(car);
    }

    @Override
    void show() {
        System.out.println("[[ConcreteCarDecorator.show]]");
        getCar().show();
        System.out.println("[[ConcreteCarDecorator.show]]");
    }

    public static void main(String[] args) {
        new ConcreteCarDecorator(new BenzCar()).show();
    }
}
